<?php
namespace INPUT;

class Hidden {
   public function __construct($name, $value ) {
	$this->id=$name;
	$this->value=$value;
   }

   function setForm ($form) {
	$this->Form = $form;
   }
   
   public function render() {
	print "<input type=\"hidden\" name=\"".$this->id."\" value=\"".$this->value."\" />\n";
   }
}

class Textbox {
//onfocus, onblur, onselect, onchange, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup 

   public function __construct($name, $size, $maxlength=255, $value=null, $disabled=false  ) {
	$this->id=$name;
	$this->size=$size;
	$this->maxlength=$maxlength;
	$this->value=$value;
	$this->disabled=$disabled;
   }
   public function setForm ($form) {
	$this->Form = $form;
   }
   public function render() {
	print "<input type=\"text\" name=\"".$this->id."\" value=\"".$this->value."\" />\n";
   }
}

class Button {
}
